
package demo;

/**
 * author : ZhihaoDeng
 * created time : 2019/3/16.
 */

public class President {
    private static President president = new President();
    private String name;

    private President() {
        this.name = "毛泽东";
    }

    /**
     * 返回唯一的主席实例
     */
    public static President getInstance() {
        return president;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }
}